package com.ciis.system.user.domain;

/**
 * Created with IntelliJ IDEA.
 * User: zhangdajun
 * Date: 14-5-24
 * Time: 下午2:52
 * To change this template use File | Settings | File Templates.
 */
public class TSysUser {

    private String id;// 用户ID
    private String name;// 用户名
    private String password;// 用户密码
    private String code;// 用户编码/学号/工号
    private int gender;// 性别,0为女，1为男
    private int age;// 年龄
    private String email;// 邮件地址
    private String phone; // 手机号码
    private String loc_phone;// 本地电话号码
    private String org_id;// 组织ID
    private int status; // 状态 1为可用，0为不可用，2为锁定

    private int isSuperAdmin = 0;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLoc_phone() {
        return loc_phone;
    }

    public void setLoc_phone(String loc_phone) {
        this.loc_phone = loc_phone;
    }

    public String getOrg_id() {
        return org_id;
    }

    public void setOrg_id(String org_id) {
        this.org_id = org_id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getSuperAdmin() {
        if(this.id!=null && this.id.equals("admin")){
            return 1;
        }
        return isSuperAdmin;
    }

    public void setSuperAdmin(int superAdmin) {
        isSuperAdmin = superAdmin;
    }
}
